package com.topone.controller;

import com.topone.Utils.ResultVOUntil;
import com.topone.VO.CountParam;
import com.topone.VO.ResultVO;
import com.topone.service.ProviderNotificationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.Map;


@CrossOrigin
@RestController
@RequestMapping("/seller")
@Slf4j
public class CountController {

    @Autowired
    private ProviderNotificationService service;

    @RequestMapping(value = "/checkBill",method = RequestMethod.POST)
    public ResultVO<Map<String, Object>> checkBill(@RequestBody CountParam countParam) {
        return ResultVOUntil.success(service.checkProviderBill(countParam));
    }
}
